-module(types0).
-compile([export_all]).

expected() ->
    test_output() ++ test_output().

main() ->
    {ok, Lib} = ffi:load_library("build/types"),
    test(fun(Fun, Args, Params) -> ffi:call_block(Lib, Fun, Args, Params) end),
    test(fun(Fun, Args, Params) ->       ffi:call(Lib, Fun, Args, Params) end),
    util:die().

test(Call3) ->
    ok = Call3("do_nothing", [], {res_type, void}).

test_output() -> ["I did nothing"].
